<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:ccts="urn:un:unece:uncefact:documentation:standard:CoreComponentsTechnicalSpecification:2"
	exclude-result-prefixes="xsd xsl">
	
	<!--
		The target namespace from the message we are transforming. The instance created should remain
		in this namespace.
	-->
	<xsl:variable name="global.ns.target" select="/xsd:schema/@targetNamespace" />
	
	<!-- document( '../Message%20schema%27s/QDT_Tests/AmountType/Annotations.xml' ) -->
	<xsl:variable name="global.file.annotations" select="document-uri( 
		document( '../annotations/annotations.xml' ) )"/>
	
	<xsl:variable name="global.instance.message">instance.message</xsl:variable>
	
	<xsl:variable name="global.schema.root" select="document-uri(/)" as="xsd:anyURI"/>
	<xsl:variable name="global.schema.root.prefix">rsm</xsl:variable>
	<xsl:variable name="global.element.root.type" 
		select="document($global.schema.root)/xsd:schema/xsd:element/@type" />
	<xsl:variable name="global.element.root.den"
		select="document($global.schema.root)//xsd:complexType
		[@name = substring-after( $global.element.root.type, ':' )]
		/xsd:annotation/xsd:documentation/ccts:DictionaryEntryName"/>
	
	
	<xsl:variable name="global.schema.reusable.abie.prefix">ram</xsl:variable>
	<xsl:variable name="global.schema.datatype.qualified.prefix">qdt</xsl:variable>
	<xsl:variable name="global.schema.datatype.unqualified.prefix">udt</xsl:variable>
	
	<xsl:variable name="global.datatypes.unqualified">
		<type>AmountType</type>
		<type>BinaryObjectType</type>
		<type>CodeType</type>
		<type>DateTimeType</type>
		<type>DateType</type>
		<type>TimeType</type>
		<type>IDType</type>
		<type>IndicatorType</type>
		<type>MeasureType</type>
		<type>NumericType</type>
		<type>NameType</type>
		<type>ValueType</type>
		<type>PercentType</type>
		<type>RateType</type>
		<type>QuantityType</type>
		<type>TextType</type>
	</xsl:variable>
</xsl:stylesheet>
